package comm.data;

//import com.data.Category;
//import com.data.PuhuiPlatFormResponseData;
import lombok.Data;

@Data
public class PuhuiPushData<T extends PuhuiPlatFormResponseData>{

    /**
     * 消息体
     */
    public byte[] body;

    /**
     * 消息类别
     */
    public Category category;

    public T object;

    public PuhuiPushData(byte[] body, T object){
        init(body,object,Category.deviceProactive);
    }

    public PuhuiPushData(byte[] body, T object, Category category){
        init(body,object,category);
    }

    public void init(byte[] body, T object, Category Category){
        this.body = body;
        this.object = object;
        this.category = Category;

    }



}
